Macromedia Flex Article

A Step-by-Step Guide to Building an Application with Flex


Table of Contents

  1. Introduction
  2. Flex Store
  3. Code Walkthrough
  4. MXML Components
  5. ActionScript Components
  6. Writing Code

MXML Components

Browse CartView.mxml on your server and view the code in your text editor (CartView is part of the flexstore.zip, available in the Requirements section).

The CartView class is an example of a reusable MXML component.

A reusable MXML component

A reusable MXML's code

Figures 2 and 3. A reusable MXML component and its code.

For each MXML component you create, Flex generates an ActionScript class where the specified root defines which class it inherits. In CartView, the root node is VBox, so the CartView class extends VBox.